<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-status" class="form-control" name="row[status]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" class="form-control" step="0.01" name="row[money]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Homeowner_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-homeowner_id" data-rule="required" data-source="homeowner/index" class="form-control selectpage" name="row[homeowner_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_id" data-rule="required" data-source="contract/index" class="form-control selectpage" name="row[contract_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Water_photo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-water_photo" class="form-control" size="50" name="row[water_photo]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-water_photo" class="btn btn-danger faupload" data-input-id="c-water_photo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-water_photo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-water_photo" class="btn btn-primary fachoose" data-input-id="c-water_photo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-water_photo"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-water_photo"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Electricity_photo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-electricity_photo" class="form-control" size="50" name="row[electricity_photo]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-electricity_photo" class="btn btn-danger faupload" data-input-id="c-electricity_photo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-electricity_photo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-electricity_photo" class="btn btn-primary fachoose" data-input-id="c-electricity_photo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-electricity_photo"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-electricity_photo"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-other_fee" class="form-control" step="0.01" name="row[other_fee]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money_electricity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money_electricity" class="form-control" step="0.01" name="row[money_electricity]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money_water')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money_water" class="form-control" step="0.01" name="row[money_water]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Last_water_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-last_water_num" class="form-control" step="0.01" name="row[last_water_num]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Last_electricity_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-last_electricity_num" class="form-control" step="0.01" name="row[last_electricity_num]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Water_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-water_num" class="form-control" step="0.01" name="row[water_num]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Electricity_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-electricity_num" class="form-control" step="0.01" name="row[electricity_num]" type="number">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
